﻿namespace SuperMarieApi.App.Controllers.Framework.XmlConfig.Model
{
    using System;
    using System.Collections.Generic;

    #region URL字典实体类============================================
    /// <summary>
    /// URL字典实体类
    /// </summary>
    [Serializable]
    public class urlrewrite
    {
        //无参构造函数
        public urlrewrite() { }

        private string _name = "";
        private string _type = "";
        private string _page = "";
        private string _inherit = "";
        private string _templet = "";
        private string _channel = "";
        private string _url_rewrite_str = "";
        private List<Urlrewriteitem> _url_rewrite_items;

        /// <summary>
        /// 名称标识
        /// </summary>
        public string name
        {
            get { return this._name; }
            set { this._name = value; }
        }

        /// <summary>
        /// 频道类型
        /// </summary>
        public string type
        {
            get { return this._type; }
            set { this._type = value; }
        }

        /// <summary>
        /// 源页面地址
        /// </summary>
        public string page
        {
            get { return this._page; }
            set { this._page = value; }
        }

        /// <summary>
        /// 页面继承的类名
        /// </summary>
        public string inherit
        {
            get { return this._inherit; }
            set { this._inherit = value; }
        }

        /// <summary>
        /// 模板文件名称
        /// </summary>
        public string templet
        {
            get { return this._templet; }
            set { this._templet = value; }
        }

        /// <summary>
        /// 所属频道ID
        /// </summary>
        public string channel
        {
            get { return this._channel; }
            set { this._channel = value; }
        }

        /// <summary>
        /// URL重写表达式连接字符串，后台编辑用到
        /// </summary>
        public string url_rewrite_str
        {
            get { return this._url_rewrite_str; }
            set { this._url_rewrite_str = value; }
        }

        /// <summary>
        /// URL字典重写表达式
        /// </summary>
        public List<Urlrewriteitem> url_rewrite_items
        {
            set { this._url_rewrite_items = value; }
            get { return this._url_rewrite_items; }
        }

    }
    #endregion
}